package com.soa.zuul.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * GatewayLimit entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "gateway_limit", schema = "public")
public class GatewayLimit implements java.io.Serializable {

	// Fields

	private String id;
	private String apiId;
	private String apiName;
	private Integer limitNum;
	private String limitType;
	private Integer  limitTime;
	private String state;

	// Constructors

	/** default constructor */
	public GatewayLimit() {
	}

	/** minimal constructor */
	public GatewayLimit(String id, String apiId) {
		this.id = id;
		this.apiId = apiId;
	}

	/** full constructor */
	public GatewayLimit(String id, String apiId, String apiName,
			Integer limitNum, String limitType, String state) {
		this.id = id;
		this.apiId = apiId;
		this.apiName = apiName;
		this.limitNum = limitNum;
		this.limitType = limitType;
		this.state = state;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "api_id", nullable = false, length = 32)
	public String getApiId() {
		return this.apiId;
	}

	public void setApiId(String apiId) {
		this.apiId = apiId;
	}

	@Column(name = "api_name")
	public String getApiName() {
		return this.apiName;
	}

	public void setApiName(String apiName) {
		this.apiName = apiName;
	}

	@Column(name = "limit_num")
	public Integer getLimitNum() {
		return this.limitNum;
	}

	public void setLimitNum(Integer limitNum) {
		this.limitNum = limitNum;
	}

	@Column(name = "limit_type", length = 2)
	public String getLimitType() {
		return this.limitType;
	}

	public void setLimitType(String limitType) {
		this.limitType = limitType;
	}

	@Column(name = "state", length = 2)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Column(name = "limit_time")
	public Integer getLimitTime() {
		return limitTime;
	}

	public void setLimitTime(Integer limitTime) {
		this.limitTime = limitTime;
	}

}